package com.ruibang.glass.equipment.entity.device;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@ApiModel
@TableName(value = "g_equipment_crane")
public class Crane extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "区域Id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "使用单位")
    private String usingUnit;
    @ApiModelProperty(value = "设备名称")
    private String name;
    @ApiModelProperty(value = "使用地点")
    private String usingLocation;
    @ApiModelProperty(value = "报告编号")
    private String reportNumber;
    @ApiModelProperty(value = "注册代码")
    private String registrationCode;
    @ApiModelProperty(value = "设备代码")
    private String deviceCode;
    @ApiModelProperty(value = "规格型号")
    private String specificationModel;
    @ApiModelProperty(value = "工作级别")
    private String workingLevel;
    @ApiModelProperty(value = "额定起重量（T）")
    private String ratedCapacity;
    @ApiModelProperty(value = "跨度（M）")
    private String span;
    @ApiModelProperty(value = "安装单位")
    private String installationUnit;
    @ApiModelProperty(value = "制造单位")
    private String manufacturingUnit;
    @ApiModelProperty(value = "制造时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate manufactureTime;
    @ApiModelProperty(value = "检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate inspectionDate;
    @ApiModelProperty(value = "下次检验时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate nextInspectionTime;
    @ApiModelProperty(value = "检验机构")
    private String inspectionOrganization;
    @ApiModelProperty(value = "改造变动情况")
    private String modificationChange;
    @ApiModelProperty(value = "起重标志")
    private String overloadMark;
    @ApiModelProperty(value = "高度限位器")
    private String heightLimitSwitch;
    @ApiModelProperty(value = "行程限位器")
    private String strokeLimitSwitch;
    @ApiModelProperty(value = "起重限制器")
    private String liftingLimitSwitch;
    @ApiModelProperty(value = "缓冲器和端部止挡")
    private String bufferAndEndStop;
    @ApiModelProperty(value = "通道口连锁保护")
    private String chainHoistProtection;
    @ApiModelProperty(value = "紧急断电开关")
    private String emergencyPowerSwitch;
    @ApiModelProperty(value = "零位保护")
    private String zeroPositionProtection;
    @ApiModelProperty(value = "扫归板")
    private String scanningAndReturning;
    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "是否删除(1：是 0：否)")
    @TableLogic
    private String isDelete;
}
